confirm on delete

65

<a href="url_to_delete" onclick="return confirm('Are you sure you want to delete this item?');">Delete</a>
 <a href="url_to_delete" onclick="return confirm('Are you sure you want to delete this item?');">Delete</a>
var result = confirm("Want to delete?");
if (result) {
    //Logic to delete the item
}

Comments

Submit
0 Comments